/***************************************************************************
 *   Copyright (C) 2008 by Steve Merrony   *
 *   steve@brahma   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef EWILISTWIDGET_H
#define EWILISTWIDGET_H

#include <QPushButton>
#include <QSignalMapper>
#include <QString>
#include <QWidget>

/**
	@author Steve Merrony <steve@brahma>
*/
class EWIListWidget : public QWidget {
	Q_OBJECT
			
	public:
    	EWIListWidget( QWidget *parent = 0 );
    	~EWIListWidget();
		void setLabel( int, QString );
		QString getLabel( int );
		
	signals:
		void edit_signal( int patch_num );
		void copy_signal( int patch_num );
		void paste_signal( int patch_num );
		void rename_signal( int patch_num );
		
	private:
		QList<QPushButton *>		patch_button_list;
		QSignalMapper	*edit_signal_mapper,
						*copy_signal_mapper,
						*paste_signal_mapper,
						*rename_signal_mapper;
		//QPushButton		name_button[100];
};

#endif
